home *** CD-ROM | disk | FTP | other *** search
- /***************************************************************************
-
- (C) 1990 Beebug Ltd
- -------------------
-
- ****************************************************************************
-
- Module : Date and Time <time.h>
-
- Author : David Allison
-
- Issue : 1.0
-
- This header is designed to be used with the Acorn Shared Library
- (CLib).
-
- ****************************************************************************/
-
- #ifndef __TIME
- #define __TIME
-
- #pragma standard 0x08
- #pragma list 0
-
- #define NULL 0
- #define CLK_TCK 100
-
- #ifndef __size_t
- #define __size_t
- typedef unsigned int size_t ;
- #endif
-
- typedef unsigned int clock_t ;
- typedef unsigned int time_t ;
-
-
- struct tm
- {
- int tm_sec ;
- int tm_min ;
- int tm_hour ;
- int tm_mday ;
- int tm_mon ;
- int tm_year ;
- int tm_wday ;
- int tm_yday ;
- int tm_isdst ;
- } ;
-
- extern clock_t clock (void) ;
- extern double difftime (time_t time1, time_t time0) ;
- extern time_t mktime (struct tm *timeptr) ;
- extern time_t time (time_t *timer) ;
-
- extern char *asctime (const struct tm *timeptr) ;
- extern char *ctime (const time_t *timer) ;
- extern struct tm *gmtime (const time_t *timer) ;
- extern struct tm *localtime (const time_t *timer) ;
- extern size_t strftime (char *s, size_t maxsize,
- const char *format, const struct tm *timeptr) ;
-
- #endif
-
-